package com.n5x.model.discount;

import com.n5x.model.AbstractModel;

import java.math.BigDecimal;
import java.util.Date;

public abstract class AbstractDiscount extends AbstractModel {

    /**
     * 优惠券名称
     */
    protected String name;

    /**
     * 目标金额
     */
    protected BigDecimal targetPrice = new BigDecimal(0);

    /**
     * 优惠金额
     */
    protected BigDecimal price = new BigDecimal(0);

    /**
     * 是否显示
     */
    protected Boolean isShow = false;

    /**
     * 有效期
     */
    protected Date vaildTime;

    /**
     * 优惠介绍
     */
    protected String content = "";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getTargetPrice() {
        return targetPrice;
    }

    public void setTargetPrice(BigDecimal targetPrice) {
        this.targetPrice = targetPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Boolean getShow() {
        return isShow;
    }

    public void setShow(Boolean show) {
        isShow = show;
    }

    public Date getVaildTime() {
        return vaildTime;
    }

    public void setVaildTime(Date vaildTime) {
        this.vaildTime = vaildTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
